package com.xiaohui.gwc.mapper;

import com.xiaohui.gwc.mode.Menu;
import com.xiaohui.gwc.mode.MenuRoute;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author: Poppin
 * @Date: 2021/11/30 12:32
 * @Version: 1.0
 */
@Mapper
public interface MenuMapper {

    List<Menu> getAllMenus();
    List<Menu> getMenuListByUserId(int id);
    List<MenuRoute> getRoutesByUserId(int id);
    MenuRoute getBaseHomeRoute();
    MenuRoute getParentRouteByRouteId(int id);
}
